package hfdp.chp05;

/**
 * Created by chei on 2016/3/29.
 */
public class Singleton {

    private static Singleton uniqueInstance;

    private Singleton(){

    }

    public static Singleton getInstance(){
        if(null == uniqueInstance){
            uniqueInstance = new Singleton();
        }
        return uniqueInstance;
    }
}
